import request from '@/utils/request'
import { ResultVoid, DeepRequired } from '../../interface'

/**
 * 登录验证码
 * /email/captcha/login/{email}
 */
export function getEmailCaptchaLoginByEmail(
  params: GetEmailCaptchaLoginByEmailParams,
) {
  return request.get<DeepRequired<ResultVoid>>(
    `/email/captcha/login/${params.email}`,
  )
}

interface GetEmailCaptchaLoginByEmailParams {
  email: string
}
